package model

import (
	"time"
)

type MonthlyOrder struct{
	MonthlyOrderId int `xorm:"pk autoincr"`
	RuleCustomersTypeId int
	AmountMoney int64
	CreatedAt time.Time
	UpdatedAt time.Time
}

func (mo *MonthlyOrder)QueryMonthlyOrder(rctId int) *MonthlyOrder{
	var mov *MonthlyOrder
	_, err := x.Where("rule_customers_type_id = ?", rctId).Get(mov)
	if err != nil{
		return nil
	}
	return mov
}